package com.woniu.p2p.service;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.*;
import com.woniu.p2p.vo.MonthAndWeekUserInvestVo;

import java.text.ParseException;

public interface P2PIndexService {
    //根据id查询首页的发布预告
    Homepage findAllHomepage(Integer id);
    //查询最近的四条公告
    PageInfo<Show> findAllShow(Integer start,Integer num);
    //查询收益最高的三条数据
    PageInfo<Invest> findAllInvestNewThree(Integer start,Integer num);
    //查询收益信用数据
    PageInfo<Invest> findAllInvestXin(Integer start,Integer num);
    //查询行业动态和媒体所有
    PageInfo<New> findAllNew(Integer start,Integer num);
    //根据本月来查询用户的投资情况
    PageInfo<MonthAndWeekUserInvestVo> findAllUserInvestByMonth(Integer start,Integer num) throws ParseException;
    //根据本周来查询用户的投资情况
    PageInfo<MonthAndWeekUserInvestVo> findAllUserInvestByWeek(Integer start, Integer num) throws ParseException;
    //查询用户的总排行
    PageInfo<MonthAndWeekUserInvestVo> findAllUserInvest(Integer start,Integer num);
}
